package cn.livingCloud.service.impl.operation;

import cn.livingCloud.dto.CaseBaseDto;
import cn.livingCloud.dto.CasePendingFormDto;

/**
 * Created by 唐旭 on 2016/6/21.
 */
public class CasePendingFormDtoLoader {
    private String uuid;

    public CasePendingFormDtoLoader(String uuid) {
        this.uuid = uuid;
    }

    public CasePendingFormDto load() {
        CaseBaseDtoLoader<CaseBaseDto> baseDtoLoader = new CaseBaseDtoLoader<>(uuid);
        CaseBaseDto load = baseDtoLoader.load(CaseBaseDto.class);

        CasePendingFormDto formDto = new CasePendingFormDto();
        formDto.setCaseDto(load);
        formDto.setCaseUuid(uuid);

        return formDto;
    }
}
